<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>入场券</title>
</head>
<script type='text/javascript' src='js/prototype.js'></script>
<script type='text/javascript' src='js/sha1.js'></script>
<script type="text/javascript">

function show(){
	var request = {
			QueryString : function(val) {
				var uri = window.location.search;
				var re = new RegExp("" + val + "=([^&?]*)", "ig");
				return ((uri.match(re)) ? (uri.match(re)[0]
						.substr(val.length + 1)) : null);
			}
		};
    var lectureId = request.QueryString("lectureId");
    var shake = request.QueryString("shake");
   
	var params = "lectureId=" + encodeURIComponent(lectureId)+"&shake="+encodeURIComponent(shake);
	new Ajax.Request("json/viewShakeResult", {
		method : "post",
		parameters : params,
		onComplete : function(request) {
			var res = request.responseText.evalJSON();
			
		
			for (var i = 0; res["result"]["userId" + i] != null; i++) {
				
				var tmp = "<div style='width:505px; float:left; height:225px;border:1px solid #000; margin-top:41px; margin-left:20px;'><p>《"+ res["result"]["lecname"]+"》</p><p>&nbsp;&nbsp;报名序号："+res["result"]["order" + i]+"</p><p>&nbsp;&nbsp;姓名："+res["result"]["username" + i]+"</p><p>&nbsp;&nbsp;学号:"+res["result"]["userId" + i]+"</p></div>";
				$("show").innerHTML += tmp;
			
			}
			
		
			
			
		},
		asynchronous : false
	});
	
}
</script>
<body onload="show()">
<div style="width:1100px;font-size:25px; text-align: left;" id="show">

</div>

</body>
</html>